package com.fpd.tools.excel;

import java.util.Arrays;

public class Test {
	public static void main(String[] args) throws Exception {
//		String file_path = "D:/test.xls";
		String filepath = "D:/test.xlsx";
//		String file_path = "D:/数据表头模板.xlsx";
		BigExcelReader reader = new BigExcelReader(filepath) {
			@Override
			protected void outputRow(String[] datas, int[] rowTypes, int rowIndex) {
				// 此处输出每一行的数据
				System.out.println(Arrays.toString(datas));
			}
		};
		long begin_time = System.currentTimeMillis();
		System.out.println("开始解析");
		// 执行解析
		reader.parse();
		System.out.println("结束解析");
		long end_time = System.currentTimeMillis();
		System.out.println("耗时：" + (end_time - begin_time) + "毫秒");//3万数据5秒解析完毕
	}
}
